/**
 * Created by Administrator on 2015/5/26.
 */
angular.module('starter')
    .controller('CatalogController',function($scope,$ionicHistory,ResourceVisitService,VoteService){
        $ionicHistory.clearHistory();
        $scope.voteTypeList = [];

        VoteService.findVoteDefineType().then(
            function (result){
                $scope.voteTypeList = result;
            },
            function (){}
        );


        $scope.submitVote=VoteService.submitAll;
    });
